package router

import (
	"github.com/exam/api/controller"
	"github.com/exam/global"
	"github.com/exam/model/dao"
	"github.com/exam/service"
	"github.com/gin-gonic/gin"
)

type OrderGroupRouter struct {
}

func (u *OrderGroupRouter) OrderRouter(r *gin.RouterGroup) {

	order := r.Group("order")
	{
		userController := controller.NewOrderController(service.NewOrderService(dao.NewOrderDao(global.DB), dao.NewOrderRedisClient(global.RedisClient)))
		order.GET("/count", userController.OrderCount)
	}

}
